<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>元素显示模式</title>
    <style>
        div {
            width: 300px;
            height: 100px;
            border: 5px solid black;
            display: block;
        }
        .div2{
            /*让元素消失,不占据页面的布局空间*/
            display: none;
        }
        span{
            width: 100px;
            height: 100px;
            background-color: yellow;
            display: block;
        }
        input,button{
            width: 200px;
            height: 200px;
            display: inline-block;
        }
    </style>
</head>
<body>
<div class="div1"></div>
<div class="div2"></div>
<div class="div3"></div>
<hr>
<span>123456798</span>
<span>123456798</span>
<span>123456798</span>
<hr>
<input type="text" name="">
<input type="text" name="">
<input type="text" name="">
<input type="button" value="按钮">
</body>
</html>